package com.boss.services;

import com.boss.dao.PersonDao;
import com.boss.model.Person;

public class PersonService {
	private PersonDao personDao;
	public PersonService(PersonDao personDao) {
		this.personDao=personDao;
	}

	public String sayHi(){
//		Person person=personDao.get();
		Person person=personDao.getById(2);
		return "Hello "+person.getName();
	}
}
